package com.itheima.vo;

import com.itheima.pojo.UmsMenu;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 所有菜单列表,包含子类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UmsMenuNode implements Serializable {
    private Long id;

    private Long parentId;  //父级ID

    private LocalDateTime createTime;  //创建时间

    private String title;  //菜单名称

    private Integer level;  //菜单级数

    private Integer sort;  //菜单排序

    private String name;  //前端名称

    private String icon;  //前端图标

    private Integer hidden;  //前端隐藏

    private List<UmsMenu> children;//封装子类对象

}
